<!doctype html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../vendor/bootstrap/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="../vendor/bootstrap-icons/font/bootstrap-icons.css">
    <title>bs</title>
    <style>
        .btn1 {
            position: fixed;
            top: 0;
            left: 50%;
            z-index: 99999999999999999;
        }
    </style>
<body>

<div class="container p-2">
    <div class="row g-2">
        <div class="col-md-6">
            <div class="qtab1"></div>
            <button class="btn btn-success mt-2 btn1">退出全屏</button>
        </div>
    </div>
</div>


<script src="../vendor/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script src="../vendor/jquery/dist/jquery.min.js"></script>
<script src="../vendor/bootstrap-quicktab/dist/js/bootstrap-quicktab.min.js"></script>

<script>
    $(function () {

        new Quicktab({
            selector: '.qtab1',
            tabs: [
                {title: '页面1', url: 'child2.html?a=1', close: false},
                {title: '页面2', url: 'child2.html?a=2', close: false},
                {title: '页面3', url: 'child2.html?a=3'},
                {title: '页面4', url: 'child2.html?a=4'},
                {title: '页面5', url: 'child2.html?a=5'},
            ],
            //工具栏相关配置
            toolbar: {
                //全屏相关配置
                fullscreen: {
                    //启用全屏功能
                    enable: true
                }
            },
        });


        $('.btn1').on('click', function () {
            Quicktab.get('.qtab1').exitFullscreen();
        })


    })


</script>

</body>
</html>
